;;自动补全快速输入
(setq abbrev-file-name             ;; tell emacs where to read abbrev
        "~/.emacs.d/abbrev_defs")    ;; definitions from...
(setq save-abbrevs 'silent)        ;; save abbrevs when files are saved
;(setq-default abbrev-mode t)
 (define-abbrev-table 'global-abbrev-table '(
	("afaict" "as far as I can tell" nil 1)
	("omuse" "http://www.emacswiki.org/cgi-bin/oddmuse.pl" nil 0)
	("btw" "by the way" nil 3)
	("wether" "whether" nil 5)
	("gp" "git push origin master" nil 5)
	("co" "talk is cheap , show me the code" nil 5)
	("ewiki" "http://www.emacswiki.org/cgi-bin/wiki.pl" nil 3)
	("pov" "point of view" nil 1)
	))
  ; (defun dont-insert-expansion-char ()  t)    ;; this is the "hook" function
  ; (put 'dont-insert-expansion-char 'no-self-insert t)   ;; the hook should have a "no-self-insert"-property set 
  
  ; (define-abbrev-table 'latex-mode-abbrev-table   '(
  ;     ("em" "\\emph{" dont-insert-expansion-char 0)
  ;       (autoload 'expand-abbrev-hook "expand")
  ; (define-abbrev-table 'java-mode-abbrev-table '(
  ;   ("sout" ["System.out.println(\"\")" 2 () nil] expand-abbrev-hook 0)))
(provide 'Abbrevs)